home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FNTNS / SQRT3T.ASM < prev    next >
Assembly Source File  |  1989-01-24  |  1KB  |  34 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; Full Precision Square Root by Polynomial Approximation. (test program)
  6. ; Last Update 09 Feb 87   Version 1.0
  7. ;
  8. sqrt3t  ident   1,0
  9. ;
  10. ;       square root test program
  11. ;
  12.         opt     cex
  13.         page    132,66,0,0
  14.         nolist
  15.         include 'dsplib:ioequ'
  16.         list
  17.         include 'dsplib:sqrt3'
  18.  
  19. datin   equ     $ffff           ;location in y memory of input file
  20. datout  equ     $fffe           ;location in y memory of output file
  21.  
  22.         org     p:$100
  23. start   movep   #0,x:M_BCR      ;no wait states on external io
  24.         move    #<$0,y0         ;clear ls input word
  25.         do      #100,_e         ;number of points to do
  26.         movep   y:datin,y1      ;get input value
  27.         sqrt3                   ;do 24 bit sqrt
  28.         movep   b,y:datout      ;output square root
  29. _e                     
  30.         wait
  31.         end
  32.